<h1>Navigation</h1>
<table border="0" width="100%" cellspacing="5">
  <tr><td>Drag-and-drop menu items around or <a href="index.php?mod=gcmsNav&amp;action=add">add</a> a new item.</td></tr>
</table>
<ul id="navList">
{foreach from=$menu item=item}
  {if $item.id == 1}
    <li id="nl1"><a href="index.php?mod=gcmsNav&amp;action=edit&amp;id=1">{$item.name}</a>
  {elseif $item.id == 2}
    <li id="nl2">{$item.name|translate}
    <ul id="conList">
    {foreach from=$cmenu item=sitem}
      <li id="cl{$sitem.id}">{$sitem.name} &nbsp;&nbsp;<a href="index.php?mod=gcmsNav&amp;action=delete&amp;parent={$sitem.parent}&amp;item={$sitem.id}"><img src="./images/trash.gif" alt="Del" /></a></li>
    {/foreach}
    </ul>
  {else}
    <li id="nl{$item.id}"><a href="index.php?mod=gcmsNav&amp;action=edit&amp;id={$item.id}">{$item.name}</a> &nbsp;&nbsp;<a href="index.php?mod=gcmsNav&amp;action=delete&amp;item={$item.id}"><img src="./images/trash.gif" alt="Del" /></a>
  {/if}
  </li>
{/foreach}
</ul>
